<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
<title>考卷</title>
<jsp:include page="../inc.jsp"></jsp:include>
<script type="text/javascript">
	parent.$.messager.progress('close');
	var a = 0;
	function searchFun() {
		if(a==1){
			$.messager.alert('提示','请不要重复提交!','warning');
			return ;
		}
		jQuery.post('${pageContext.request.contextPath}/ksKjController/edit',$.serializeObject($('#searchForm')));
		 var win = $.messager.progress({
			 title : '提示',
				text : '考试已经结束..'
         });
		 setTimeout(function(){
             $.messager.progress('close');
         },1000);
		 a++;
	}
</script>
</head>
<body style="margin:30px">

	
	<form id="searchForm">
	<input type="text" name="KJIDSTR" value="${list[0].KJIDSTR}">
	<c:forEach var="kt" items="${list}">
		<h3> ${kt.TIGANSTR}</h3>
		<input type="radio" name="${kt.ID}" value="A" > ${kt.ASELECTSTR}  &nbsp;&nbsp;&nbsp;
		<input type="radio" name="${kt.ID}" value="B"> ${kt.BSELECTSTR} &nbsp;&nbsp;&nbsp;
		<input type="radio" name="${kt.ID}" value="C"> ${kt.CSELECTSTR}&nbsp;&nbsp;&nbsp; 
		<input type="radio" name="${kt.ID}" value="D"> ${kt.DSELECTSTR}&nbsp;&nbsp;&nbsp;<br><hr>
	</c:forEach>
	
	<a   href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'brick_add',plain:true" onclick="searchFun();">提交</a>
	</form>
</body>
</html>